{include file="public/header"}
<script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
	<div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加用户</strong></div>
	<div class="body-content">
		<form method="post" class="form-x" action="{:url('userEdit',input('get.'))}">
			<input type="hidden" name="id" value="{$list['id']}">
			<div class="form-group">
				<div class="label">
					<label>会员名：</label>
				</div>
				<div class="field">
					<input type="text" class="input w50" value="{$list['uname']}" name="uname" data-validate="required:请输入会员名" />
					<div class="tips"></div>
				</div>
			</div>
			<div class="clear"></div>
			<div class="form-group">
				<div class="label">
					<label>手机号：</label>
				</div>
				<div class="field">
					<input type="number" class="input w50" name="tel" value="{$list['tel']}" />
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>邮箱：</label>
				</div>
				<div class="field">
					<input type="email" class="input w50" name="email" value="{$list['email']}"/>
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>用户头像：</label>
				</div>
				<div class="field">
					<input type="text" data-image="images/logo.png" readonly id="url1" class="input tips" style="width:25%; float:left;" value="" data-toggle="hover" data-place="right" />
					<input type="button"  class="button bg-blue margin-left" id="image1" value="+ 浏览上传" >
					<input type="file" name="logo" onchange="url1.value=this.value" style="position:relative; z-index:1000px; filter:alpha(opacity=0);-moz-opacity:0; opacity:0; left:-155px;" />
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>用户权限：</label>
				</div>
				<div class="field">
					<select name="author" class="input w50">
						<option value="">请选择权限</option>
						{foreach $auth as $v}
						<option value="{$v['id']}" {if $v['id']==$list['author']}selected{/if}>{$v['title']}</option>
						{/foreach}
					</select>
					<div class="tips"></div>
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label>重置密码：</label>
				</div>
				<div class="field"  style="padding: 9px 7px 7px 0;">
					<input type="radio" name="reset" value="1"/>是 &nbsp;&nbsp;&nbsp;
					<input type="radio" name="reset" value="0" checked />否
					<input type="hidden" name="upwd" value="{$list['upwd']}">
				</div>
			</div>
			<div class="form-group">
				<div class="label">
					<label></label>
				</div>
				<div class="field">
					<button class="button bg-main icon-check-square-o" name="fh" value="1" type="submit">修改并返回</button>
					<button class="button bg-main icon-check-square-o" name="jx" value="2" type="submit">修改并继续</button>
				</div>
			</div>
		</form>
	</div>
</div>
</body>

</html>